<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>树形菜单</title>
		<script type="text/javascript" src="../js/jquery-1.8.3.js"></script>
		<script type="text/javascript" src="../js/easyui/jquery.easyui.min.js"></script>
		<script type="text/javascript" src="../js/easyui/locale/easyui-lang-zh_CN.js"></script>
		<link rel="stylesheet" href="../js/easyui/themes/default/easyui.css" />
		<link rel="stylesheet" href="../js/easyui/themes/icon.css" />
		<script type="text/javascript" src="../js/ztree/jquery.ztree.all-3.5.js"></script>
		<link rel="stylesheet" href="../js/ztree/zTreeStyle.css" />
		<script type="text/javascript">
			$(function() {
				var setting = {
					data: {
						simpleData: {
							enable: true
						}
					}
				};
				
				var zNodes =[
					{ id:1, pId:0, name:"父节点1"},
					{ id:2, pId:0, name:"父节点2"},
					{ id:11, pId:1, name:"子节点1"},
					{ id:12, pId:1, name:"子节点2"},
					{ id:13, pId:2, name:"子节点3"},
					{ id:14, pId:2, name:"子节点4"}
 				];
 				$.fn.zTree.init($("#baseMenu"), setting, zNodes);
			});
		</script>
	</head>

	<body class="easyui-layout">
		<div data-options="region:'north',title:'North Title',split:true" style="height:100px;"></div>
		<div data-options="region:'south',title:'South Title',split:true" style="height:100px;"></div>
		<div data-options="region:'east',iconCls:'icon-reload',title:'East',split:true" style="width:100px;"></div>
		<div data-options="region:'west',title:'West',split:true" style="width:100px;">
			<div class="easyui-accordion" data-options="fit:'true'">
				<div data-options="iconCls:'icon-save',title:'基础设置'"></div>
				<div data-options="iconCls:'icon-save',title:'系统设置'">
					<ul id="baseMenu" class="ztree"></ul>
				</div>
				<div data-options="iconCls:'icon-save',title:'人员管理'"></div>
			</div>
		</div>
		<div data-options="region:'center',title:'center title'" style="padding:5px;background:#eee;">
			<div id="myTabs" data-options="fit:true" class="easyui-tabs">
				<div data-options="fit:true,title:'选项卡一',iconCls:'icon-reload',closable:true">选项卡一</div>
				<div data-options="fit:true,title:'选项卡二',iconCls:'icon-reload',closable:true">选项卡二</div>
				<div data-options="fit:true,title:'选项卡三',iconCls:'icon-reload',closable:true">选项卡三</div>
			</div>
		</div>
	</body>

</html>